import Vue from 'vue'
import App from './App.vue'
import 'nprogress/nprogress.css'
import router from '@/router'
import store from '@/store'
import '@/mock'

import components from './main/components'
import elementUl from './main/elementUl'
import lazy from './main/lazy'
import validate from './main/validate'
Vue.use(components)
Vue.use(elementUl)
Vue.use(lazy)
Vue.use(validate)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  store,
  router,
  beforeCreate() {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
